/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sheep.model;

import java.awt.Color;
import java.net.URL;
import java.util.LinkedList;
import sheep.view.Component.CalendarCellRenderer.Adapter;

/**
 *
 * @author geek
 */
public class Calendrier {
  private static int number = 0;
  private int id;
  private String name;
  private Adapter.Status status;
  private String message;
  private URL buddyIconURL;
  private Color color;
  LinkedList <Note> noteList = new LinkedList<Note>();
  private String location; 
  private boolean isDisplay =false ;
  private boolean isCurrent =false ;
        
  public Calendrier(String name, Adapter.Status status, String message, String buddyIcon, Color color) {
    number++;
    id = number;
    this.name = name;
    this.status = status;
    this.message = message;
    this.color = color;
    this.buddyIconURL =  null;
    if (status == Adapter.Status.SELECTED)
      isDisplay = true;
  }

  public void addNote (Note note){
    if (!noteList.contains(note))
      noteList.add(note);
  }
  
  public boolean remNote (){
    return noteList.remove(name);
  }
  
  public LinkedList <Note> getNoteList(){
    return noteList;
  }
  
  
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Adapter.Status getStatus() {
    return status;
  }

  public void setStatus(Adapter.Status status) {
    this.status = status;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public URL getBuddyIconURL() {
    return buddyIconURL;
  }

  public void setBuddyIconURL(URL buddyIconURL) {
    this.buddyIconURL = buddyIconURL;
  }

  public Color getColor() {
    return color;
  }

  public void setColor(Color color) {
    this.color = color;
  }

  public

  boolean isDisplay() {
    return isDisplay;
  }

  public void setIsDisplay(boolean isDisplay) {
    this.isDisplay = isDisplay;
  }

  public boolean isCurrent() {
    return isCurrent;
  }

  public void setCurrent(boolean isCurrent) {
    this.isCurrent = isCurrent;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }
}
